package com.yonyou.cyxdms.basedata.service.controller.vehicleproduct;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.yonyou.cyx.framework.controller.base.BaseController;
import com.yonyou.cyxdms.basedata.service.service.feign.VehicleIntoToDmsService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;


/**
 * 下发车辆主数据
 *
 * @author Xiahy
 * @since 2022-05-21
 */

@Api(value = "VehicleIntoToDmsController", tags = "车辆颜色")
@RestController
@RequestMapping("/vehicleInfo/toDms")
public class VehicleIntoToDmsController extends BaseController {

    @Autowired
    public VehicleIntoToDmsService vehicleIntoToDmsService;
    /**
     *定时任务下发车辆配置信息
     *
     */
    @ApiOperation(value = "定时任务下发车辆配置信息", notes = "定时任务下发车辆配置信息")
    @GetMapping("/sendVehicleAllInfoToDms")
    public void sendVehicleAllInfoToDms(@RequestParam Map<String, Object> queryParam) {
    	vehicleIntoToDmsService.sendVehicleAllInfoToDms(queryParam);
    }
    
    /**
     *定时任务下发车辆配置信息
     *
     */
    @ApiOperation(value = "定时任务下发车辆颜色信息", notes = "定时任务下发车辆颜色信息")
    @GetMapping("/sendVehicleColorInfoToDms")
    public void sendVehicleColorInfoToDms(@RequestParam Map<String, String> queryParam) {
    	vehicleIntoToDmsService.sendVehicleColorInfoToDms(queryParam);
    }
    
    /**
     *定时任务下发车辆主数据信息
     *
     */
    @ApiOperation(value = "定时任务下发车辆主数据信息", notes = "定时任务下发车辆主数据信息")
    @GetMapping("/sendVehicleProductInfoToDms")
    public void sendVehicleProductInfoToDms(@RequestParam Map<String, String> queryParam) {
    	vehicleIntoToDmsService.sendVehicleProductInfoToDms(queryParam);
    }

}